//
//  QGrabTopCell.m
//  QoilPublic
//
//  Created by 杨凯 on 16/9/6.
//  Copyright © 2016年 杨凯. All rights reserved.
//

#import "QGrabTopCell.h"

@interface QGrabTopCell()

@property (weak, nonatomic) IBOutlet UILabel *telPhoneAndNameLabel;


@property (weak, nonatomic) IBOutlet UIImageView *progressImageView;




@end
@implementation QGrabTopCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setDics:(NSDictionary *)dics{

    _dics = dics;
    _telPhoneAndNameLabel.text = [NSString stringWithFormat:@"咨询电话:%@ %@",_dics[@"servicePhone"],_dics[@"serviceName"]];
}


- (IBAction)callPhoneAction:(id)sender {
    
    CLog(@"===");
    NSString *str = [NSString stringWithFormat:@"telprompt://%@",_dics[@"servicePhone"]];
    NSURL *url=[NSURL URLWithString:str];
    [[UIApplication sharedApplication]openURL:url];
}



@end
